package com.lframework.starter.web.inner.bo.oplog;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lframework.starter.common.constants.StringPool;
import com.lframework.starter.web.core.bo.BaseBo;
import com.lframework.starter.web.inner.entity.OpLogs;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class OpLogInUserCenterBo extends BaseBo<OpLogs> {

    /**
     * ID
     */
    @ApiModelProperty("ID")
    private String id;

    /**
     * 日志名称
     */
    @ApiModelProperty("日志名称")
    private String name;

    /**
     * 类别
     */
    @ApiModelProperty("类别")
    private Integer logType;

    /**
     * IP
     */
    @ApiModelProperty("IP")
    private String ip;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = StringPool.DATE_TIME_PATTERN)
    private LocalDateTime createTime;

    public OpLogInUserCenterBo() {

    }

    public OpLogInUserCenterBo(OpLogs dto) {

        super(dto);
    }
}
